import request from '@/utils/request'

// 查询aid信息列表
export function listAid(query) {
  return request({
    url: '/aidSystem/aid/list',
    method: 'get',
    params: query
  })
}

// 查询aid信息所有列表
export function listAllAid(query) {
  return request({
    url: '/aidSystem/aid/listAll',
    method: 'get',
    params: query
  })
}

// 查询aid信息详细
export function getAid(id) {
  return request({
    url: '/aidSystem/aid/getInfo/' + id,
    method: 'get'
  })
}

// 新增aid信息
export function addAid(data) {
  return request({
    url: '/aidSystem/aid/add',
    method: 'post',
    data: data
  })
}

// 修改aid信息
export function updateAid(data) {
  return request({
    url: '/aidSystem/aid/edit',
    method: 'post',
    data: data
  })
}

// 删除aid信息
export function delAid(id) {
  return request({
    url: '/aidSystem/aid/remove/' + id,
    method: 'get'
  })
}
